package com.example.exception;

import lombok.Getter;

@Getter
public class CustomTokenException extends RuntimeException {

    /**
     *  自定义异常
     */
    private final Integer code;

    public CustomTokenException() {
        super("token 认证失败");
        this.code = 401;
    }

}
